﻿using TemplatesPrint.DBHelper;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplatesPrint.MySqlEntitys
{
    [SugarTable("fr_templates")]
    public class Fr_TemplatesEntity 
    {
        [SugarColumn(IsPrimaryKey = true)]
        public string _id { get; set; }

        [SugarColumn(IsNullable = true)]
        public string describe { get; set; }

        [SugarColumn(IsNullable = true)]
        public string Type { get; set; }
        
       
        [SugarColumn(IsNullable = true)]
        public string status { get; set; }

        //[Navigate(NavigateType.OneToOne, nameof(status))]//一对一
        //public Fr_TemplateStatusDicEntity status_dic { get; set; }
        //[SugarColumn(IsIgnore = true)]
        //public string status_name { get { return status_dic.name; } }

        [SugarColumn(IsNullable = true)]
        public string memo { get; set; }

        [SugarColumn(IsNullable = true, IsOnlyIgnoreUpdate = true)]
        public string create_time { get; set; }

        [SugarColumn(IsNullable = true)]
        public string update_time { get; set; }
    }
}
